#include <iostream>
#include <stdio.h>
#include <errno.h>

using namespace std ;

int main(int argc, char **argv)
{
	if (argc < 1)
	{
		cout << "Pas d'argument" << endl;
		exit(0);
	}
	
	int i = unlink(argv[1]);
	
	if (i < 0)
	{
		cout << "Erreur suppression : " << argv[1] << endl ;
		cout << "N° :" << errno << " ( " ;

		cout << strerror(errno) << endl;
		
		if (errno == EACCES)
			cout << " Aucun droit d'ecriture sur le repertoire " << endl;
		
		cout << " )" << endl;
	}
}
